package model;

import java.io.Serializable;
import javax.persistence.*;


/**
 * The persistent class for the rorder database table.
 * 
 */
@Entity
@NamedQuery(name="Rorder.findAll", query="SELECT r FROM Rorder r")
public class Rorder implements Serializable {
	private static final long serialVersionUID = 1L;

	@EmbeddedId
	private RorderPK id;

	private int money;
	private int status;
	
	public int getStatus() {
		return status;
	}

	public void setStatus(int status) {
		this.status = status;
	}
	//bi-directional many-to-one association to Route
	@ManyToOne
	@JoinColumn(name="r_name",insertable=false, updatable=false)
	private Route route;

	//bi-directional many-to-one association to Tourist
	@ManyToOne
	@JoinColumn(name="t_email",insertable=false, updatable=false)
	private Tourist tourist;

	public Rorder() {
	}

	public RorderPK getId() {
		return this.id;
	}

	public void setId(RorderPK id) {
		this.id = id;
	}

	public int getMoney() {
		return this.money;
	}

	public void setMoney(int money) {
		this.money = money;
	}

	public Route getRoute() {
		return this.route;
	}

	public void setRoute(Route route) {
		this.route = route;
	}

	public Tourist getTourist() {
		return this.tourist;
	}

	public void setTourist(Tourist tourist) {
		this.tourist = tourist;
	}

}